<?php

Route::get('admin/login', function () {
    return view('WoXuanWang\User::user.admin_login');
});
Route::get('admin/logout', function () {
    \Auth::logout();
    return redirect('admin/login');
});


Route::post('user/role/bundle', '\WoXuanWang\User\Controllers\RoleController@bundle');
Route::resource('user/role', '\WoXuanWang\User\Controllers\RoleController');

Route::post('user/permission/bundle', '\WoXuanWang\User\Controllers\PermissionController@bundle');
Route::resource('user/permission', '\WoXuanWang\User\Controllers\PermissionController');

Route::post('user/bundle', '\WoXuanWang\User\Controllers\UserController@bundle');
Route::resource('user', '\WoXuanWang\User\Controllers\UserController');
